﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
using System.Threading.Tasks;

namespace MiniPc.API
{
    public interface IJwtService
    {
        /// <summary>
        /// 创建Token
        /// </summary>
        /// <param name="claims"></param>
        /// <returns></returns>
        string CreateJwtStr(Claim[] claims);


        /// <summary>
        /// 解密Token
        /// </summary>
        /// <param name="Token"></param>
        /// <param name="keyValuePairs"></param>
        /// <returns></returns>
        bool GetClaimFtomToken(string Token,out Dictionary<string, string> keyValuePairs);
    }
}
